<template>
	<view class="content">
		<uni-section title="合作品牌" class="cooperate">
			<template v-slot:decoration>
				<view class="line"></view>
			</template>
			<view class="imglist">
				<view class="Brand" v-for="(item,index) in BrandList">
					
					<view class="item-mark">
						<view class="item-text">{{item.name}}</view>
						<view class="item-desc">{{item.desc_str}}</view>
					</view>
					<image class="img" :src="item.thumb"></image>
				</view>
			</view>
			<view >

			</view>
		</uni-section>

		<uni-section title="楼盘套餐" class="property">
			<template v-slot:decoration>
				<view class="line"></view>
			</template>
			<view class="item-list">
				<view class="item-A" v-for="(item,index) in comboList">
					<image class="item-img" :src="item.thumb" mode=""></image>
					<view class="item-mark">
						<view class="item-title">{{item.name}}</view>
						<view class="item-tp">
							<view class="item-text">{{item.model}}m²</view>
							<view class="item-price">{{item.price}}</view>
						</view>
						<view class="item-desc">{{item.desc_str}}</view>
					</view>
				</view>
			</view>
		</uni-section>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				comboList: [],
				BrandList: []
			};
		},
		onLoad() {
			this.$http.get("system/getBrandList", {}).then(res => {
					console.log(res);
					this.BrandList = res.data.data
				}),
				this.$http.get("/system/getIndexData", {}).then(res => {
					//console.log(res);
					this.comboList = res.data.data.comboList
				})
		},
		methods: {}
	}
</script>

<style lang="scss">
	.content {
		::-webkit-scrollbar {
			display: none;
		}

		.cooperate {
			.line {
				width: 6rpx;
				height: 28rpx;
				background: #3d9c36;
				margin-right: 20rpx;
			}

			.imglist {
				overflow-x: auto;
				overflow-y: hidden;
				white-space: nowrap;
				margin-left: 20rpx;
				display: flex;
				box-sizing: border-box;

				.Brand {
					position: relative;

					.img {
						width: 280rpx;
						height: 168rpx;
						margin-right: 20rpx;
						border-radius: 10rpx;

					}

					.item-mark {
					position: absolute;
					background: rgba(0, 0, 0, .1);
					z-index: 3;
					width: 280rpx;
					height: 168rpx;
					display: flex;
					flex-direction: column;
					justify-content: center;
					align-items: center;
						.item-text {
							z-index: 30;
							color: #ffffff;
							font-weight: 700;
						}
						
						.item-desc {
							z-index: 30;
							color: #e3e3e3;
						}
					}
				}

			}
			
		}

		.property {
			background-color: #f5f5f5;

			.line {
				width: 6rpx;
				height: 28rpx;
				background: #3d9c36;
				margin-right: 20rpx;
			}

			.item-list {
				display: flex;

				.item-A {
					margin-top: 40rpx;
					margin-left: 40rpx;

					.item-img {
						width: 316rpx;
						height: 420rpx;
						border-radius: 12rpx 12rpx 0rpx 0rpx;
					}

					.item-mark {
						width: 316rpx;
						height: 164rpx;
						background: #ffffff;
						border-radius: 0px 0px 12px 12px;
						margin-top: -10rpx;

						.item-title {
							padding-top: 16rpx;
							margin-left: 20rpx;
							font-size: 24rpx;
							font-family: PingFang SC, PingFang SC-Bold;
							font-weight: 700;

							color: #333333;
							line-height: 24rpx;
							;
						}

						.item-tp {
							display: flex;
							flex-direction: row;

							.item-text {
								margin-top: 14rpx;
								margin-left: 20rpx;
								font-size: 20rpx;
								font-family: PingFang SC, PingFang SC-Medium;
								font-weight: 500;
								color: #666666;
								line-height: 20rpx;
								margin-right: 44rpx;
							}

							.item-price {
								width: 78rpx;
								height: 44rpx;
								font-size: 32rpx;
								font-family: PingFang SC, PingFang SC-Bold;
								font-weight: 700;
								text-align: CENTER;
								color: #e54040;
								line-height: 32rpx;

							}

							.item-price::before {
								content: '￥';
								width: 20rpx;
								height: 28rpx;
								font-size: 20rpx;
							}
						}


						.item-desc {
							width: 280rpx;
							height: 56rpx;
							font-size: 20rpx;
							font-family: PingFang SC, PingFang SC-Medium;
							font-weight: 500;
							text-align: LEFT;
							color: #666666;
							line-height: 20rpx;
							margin-left: 20rpx;
						}
					}
				}
			}
		}

	}
</style>